import * as LibGenerateTestUserSig from './lib-generate-test-usersig.min.js'


const SDKAPPID = 1400451621
/**
 * 签名过期时间，建议不要设置的过短
 */
const EXPIRETIME = 604800

const SECRETKEY = '69f7d1656f3d93bd295272afb5ec59446cbcfde4a92059676795adc6c67d5144'

export function genTestUserSig(userID) {
  const generator = new LibGenerateTestUserSig(SDKAPPID, SECRETKEY, EXPIRETIME)
  const userSig = generator.genTestUserSig(userID)
  console.log(userID)

  return {
    sdkAppID: SDKAPPID,
    userSig: userSig,
  }
}

